<template>
	<view :style="themeColor">
		<view class="page">
			<view
				class="flex flex-wrap align-center justify-between benben-position-layout flex settlementMerchants_flex_0"
				:style="{height:(88+StatusBarRpx)+'rpx',paddingTop:StatusBarRpx+'rpx', }">
				<view class='flex flex-wrap align-center settlementMerchants_fd0_0' @tap.stop="handleJumpDiy"
					data-type="back" data-url="1">
					<image class='settlementMerchants_fd0_0_c0' mode="aspectFit" :src='STATIC_URL+"296.png"'></image>
				</view>
				<text class='settlementMerchants_fd0_1'>商家入驻</text>
				<view class='flex flex-wrap align-center justify-center settlementMerchants_fd0_0'>
				</view>

			</view>
			<view :style="{height: (88+StatusBarRpx)+'rpx'}"></view>
			<!---flex布局flex布局开始-->
			<view class="flex benben-flex-layout flex-wrap align-center settlementMerchants_flex_1">
				<jyf-parser class='settlementMerchants_fd1_0' :html="settleData.body | richTextFormat">
				</jyf-parser>
			</view>

			<!---flex布局flex布局结束-->
			<view
				class="flex flex-direction flex-wrap align-center benben-position-layout flex settlementMerchants_flex_2">
				<view class='flex flex-wrap align-center'>
					<benben-flex-switch-new class-name='flex flex' v-model="is_tick" :disabled='false' :auto='true'>
						<template v-slot:checked>

							<view class='flex flex position-relative align-center'>
								<image class='settlementMerchants_checkfd2_0_c0_c0_c0' mode="aspectFit"
									:src='STATIC_URL+"133.png"'></image>
							</view>

						</template>
						<template v-slot:unchecked>

							<view class='flex flex position-relative justify-end align-center'>
								<image class='settlementMerchants_noCheckfd2_0_c0_c1_c0' mode="aspectFit"
									:src='STATIC_URL+"156.png"'></image>
							</view>

						</template>
					</benben-flex-switch-new>
					<text class='settlementMerchants_fd2_0_c1'>我已阅读并同意以上协议</text>
				</view>
				<button class='settlementMerchants_fd2_1' @tap.stop="nextFunc()">下一步，填写申请信息</button>

			</view>
			<view :style="{height: '160rpx'}"></view>


		</view>
	</view>
</template>
<script>
	import {
		validate
	} from '@/common/utils/validate.js'

	export default {
		components: {},


		data() {
			return {
				"is_tick": false,
				"settleData": {
					"aid": "",
					"title": "",
					"body": "",
					"create_time": ""
				}
			};
		},
		computed: {
			themeColor() {
				return this.$store.getters.themeColor
			},

		},
		watch: {},
		onLoad(options) {
			this.getSettleFunc()
		},
		onUnload() {

		},
		onReady() {

		},
		onShow() {

		},
		onHide() {

		},
		onResize() {

		},
		onPullDownRefresh() {

		},
		onReachBottom(e) {

		},
		onPageScroll(e) {

		},
		methods: {
			//下一步
			nextFunc() {
				if (this.is_tick === false) {
					this.$message.info('请阅读并同意勾选协议');
					return false;
				}
				this.$urouter.redirectTo(`/pages/shopSettle/informationAuthentications/informationAuthentications`);
			},
			//获取入驻信息
			async getSettleFunc() {
				//请求方法
				//数据验证

				let datasettleData = await this.$api.post(global.apiUrls.post636c78ae2216b, {
					aid: '11'
				});

				if (datasettleData.data.code != 1) {
					this.$message.info(datasettleData.data.msg);
					return
				}
				let infosettleData = datasettleData.data;
				this.settleData = infosettleData.data

			}
		}
	};
</script>
<style lang="scss" scoped>
	.page {
		width: 100vw;
		overflow-x: hidden;
		min-height: calc(100vh - var(--window-bottom));
		background: #fff;
		background-size: 100% auto;
	}

	.settlementMerchants_flex_0 {
		border-bottom: 1px solid rgba(230, 230, 230, 1);
		background: #fff;
		width: 750rpx;
		height: 88rpx;
		overflow: hidden;
		z-index: 10;
		top: 0rpx;
		background-size: 100% auto !important;
	}

	.settlementMerchants_fd0_1 {
		color: #333333;
		font-size: 36rpx;
		font-weight: 500;
		line-height: 50rpx;
	}

	.settlementMerchants_fd0_0_c0 {
		width: 20rpx;
		height: 36rpx;
		border-radius: 0rpx 0rpx 0rpx 0rpx;
		margin: 0rpx 0rpx 0rpx 32rpx;
	}

	.settlementMerchants_fd0_0 {
		width: 100rpx;
		height: 88rpx;
	}

	.settlementMerchants_flex_1 {
		padding: 32rpx 32rpx 0rpx 32rpx;
	}

	::v-deep .settlementMerchants_fd1_0 {
		width: 100%;
	}

	.settlementMerchants_flex_2 {
		width: 750rpx;
		height: 160rpx;
		overflow: hidden;
		z-index: 10;
		bottom: calc(40rpx + var(--window-bottom));
	}

	.settlementMerchants_fd2_1 {
		background: var(--benbenbgColor2);
		border-radius: 100rpx 100rpx 100rpx 100rpx;
		font-size: 32rpx;
		color: #fff;
		width: 686rpx;
		height: 88rpx;
		line-height: 88rpx;
		margin: 32rpx 0rpx 0rpx 0rpx;
	}

	.settlementMerchants_fd2_0_c1 {
		color: #999999;
		font-size: 24rpx;
		font-weight: 400;
		line-height: 33rpx;
		margin: 0rpx 0rpx 0rpx 16rpx;
	}

	.settlementMerchants_noCheckfd2_0_c0_c1_c0 {
		border-radius: 24rpx 24rpx 24rpx 24rpx;
		width: 24rpx;
		height: 24rpx;
	}

	.settlementMerchants_checkfd2_0_c0_c0_c0 {
		width: 24rpx;
		height: 24rpx;
		border-radius: 24rpx 24rpx 24rpx 24rpx;
	}
</style>